package com.eastfair.auth.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eastfair.annotation.annotation.tenant.TenantAuth;
import com.eastfair.auth.dto.RoleDTO;
import com.eastfair.auth.dto.UserAccountDto;
import com.eastfair.auth.entity.Role;
import com.eastfair.auth.entity.UserAccount;
import com.eastfair.auth.hystrix.GlobalBusinessServiceFallback;
import com.eastfair.auth.hystrix.UserAccountApiFallback;
import com.eastfair.auth.vo.RoleVo;
import com.eastfair.auth.vo.UserAccountVo;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.el.ElParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * auth feign接口
 *
 * @Author ligang
 * @Date 2021/7/16 16:41
 */
@FeignClient(name = "auth/global", fallback = GlobalBusinessServiceFallback.class)
public interface GlobalBusinessServiceFeign {

    /**
     * 查询角色
     *
     * @return 查询结果
     */
    @ApiOperation(value = "查询角色", notes = "查询角色")
    @PostMapping("/queryRole")
    R<List<RoleVo>> queryRole(@RequestBody RoleDTO roleDTO);
}
